home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Select (Limited Edition)
/
Computer Select.iso
/
pcmag
/
v11n08
/
wprints.exe
/
WPRINC.EXE
/
GLOBAL.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-02-13
|
3KB
|
72 lines
#include <windows.h>
#include "wprint.h"
// Prototype definitions for main functions...
int PASCAL WinMain(HANDLE, HANDLE, LPSTR, int);
BOOL InitApplication(HANDLE);
BOOL InitInstance(HANDLE, int);
long FAREXPORT MainWndProc(HWND, unsigned, WORD, LONG);
BOOL FAREXPORT About(HWND, unsigned, WORD, LONG);
BOOL FAREXPORT INIDlgProc (HWND, unsigned, WORD, LONG);
VOID CenterWindow (HANDLE) ;
BOOL Error (int);
// PRINT.C
BOOL PrintDragList (void);
BOOL FAREXPORT PrintDlgProc (HWND, unsigned, WORD, LONG);
BOOL FAREXPORT AbortProc (HDC, short);
HDC GetPrinterDC (void); // I want this local...
BOOL PrintTextFile (char *);
BOOL PrintBitmap (char *, HBITMAP);
BOOL FileIsText (char *);
BOOL FileIsBitmap (char *);
HANDLE AttemptOpeningDIB (LPSTR);
BOOL DrawBitmap (HDC, int, int, int, int, HANDLE);
DWORD GetDIBDimensions (HANDLE);
// DIB.C
WORD PaletteSize (VOID FAR *);
WORD DibNumColors (VOID FAR *);
BOOL DibInfo (HANDLE,LPBITMAPINFOHEADER);
HANDLE ReadDibBitmapInfo (int);
DWORD PASCAL bigread (int, VOID far *, DWORD);
// Regular external variables...
RECT rect ;
HANDLE hInst, hAccel;
HWND hWndParent, hDlgPrint;
char szDropFile [FILE_NAME_SIZE] ;
HANDLE hDragList;
LPDRAGLIST lpDragList;
WORD wNumDrop;
int i;
BOOL bUserAbort ;
FARPROC lpfnAbortProc;
/* This stuff is for common dialogs */
OPENFILENAME eofn;
char eszDirName[144] ;
char eszFile[144], eszFileTitle[144];
char * eszFilter[] = {
".BMP files (*.BMP)",
"*.bmp",
".DIB files (*.DIB)",
"*.dib",
".TXT files (*.TXT)",
"*.txt",
".INI files (*.INI)",
"*.ini",
".BAT files (*.BAT)",
"*.bat",
".C files (*.C)",
"*.c",
".H files (*.H)",
"*.h",
".RC files (*.RC)",
"*.rc",
""};